package com.example.fengsam.aidong.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.fengsam.aidong.R;
import com.example.fengsam.aidong.bean.MoodInfo;

import java.util.List;

/**
 * Created by fengsam on 17-9-20.
 */

public class MoodAdapter extends BaseQuickAdapter<MoodInfo,BaseViewHolder> {

    public MoodAdapter(@LayoutRes int layoutResId, @Nullable List<MoodInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MoodInfo item) {
        helper.setText(R.id.tv_mood_content,item.getContent());
    }
}
